package com.tfswx.jcyw.ruleenginedesigner.api;

import com.tfswx.ruleengine.compute.gzjy.RuleEngineUtil;
import com.tfswx.jcyw.ruleenginedesigner.bean.ApiResult;
import com.tfswx.jcyw.ruleenginedesigner.dto.xtgl.XtInfoGetOutputDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ricky
 * @date 2021/5/26
 */
@RestController
@RequestMapping("/xtgl")
@Api(tags = "系统管理")
public class XtpzController {

    @ApiOperation("获取系统信息")
    @PostMapping("/getXtInfo")
    public ApiResult<XtInfoGetOutputDTO> getXtInfo() {
        XtInfoGetOutputDTO xtInfoGetOutputDTO = new XtInfoGetOutputDTO();
        xtInfoGetOutputDTO.setGzyqVersion(RuleEngineUtil.getGzyqVersion());
        return ApiResult.success(xtInfoGetOutputDTO);
    }
}
